package cn.e4j.modular.crm.entity;

import cn.e4j.core.typewrap.PO;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author shixc
 * @since 2019-02-01
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("MMRN_T")
public class MmrnT extends PO<MmrnT> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "MMRNENT", type = IdType.INPUT)
    private String MMRNENT;

    private String MMRNDOCNO;

    private BigDecimal MMRNSEQ;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate MMRNDOCDATE;

    private String MMRN001;

    private String MMRN002;
    private String MMRN003;

    private String MMRN004;
    private String MMRN005;
    private String MMRN006;

    private String MMRN007;
    private String MMRN008;
    private String MMRN009;
    private String MMRN010;
    private String MMRN011;
    private String MMRNACTI;
    @TableField(fill = FieldFill.INSERT)
    private String MMRNUSER;

    @TableField(fill = FieldFill.INSERT)
    private String MMRNGRUP;

    @TableField(fill = FieldFill.UPDATE)
    private String MMRNMODU;

    @TableField(fill = FieldFill.INSERT)
    private String MMRNTIME;

    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate MMRNDATE;

    @TableField(fill = FieldFill.INSERT)
    private String MMRNORIG;

    @TableField(fill = FieldFill.INSERT)
    private String MMRNORIU;


    @Override
    protected Serializable pkVal() {
        return this.MMRNENT;
    }

}
